#include <stdio.h>

typedef  struct  date{
    int   year;
    int   month;
    int  day;
}date;

void test_pointer(){
    date a = {2031, 8, 7};
    date * p = &a;
    
    printf("(*p).year = %d\n",(*p).year);
    // (*p).year = 2031

    printf("(*p).year = %d\n",p -> year);
    // (*p).year = 2031
}